// Copyright (C) 2012 Tanmay Sinha
// All rights reserved
package org.saakshar.utils;

/**
 * Simple string utilities
 * 
 * @author tanmay
 */
public final class StringUtils {

	/**
	 * Check if string empty or null
	 * 
	 * @param string
	 *            the string to check
	 * @return <code>true</code> if string is either empty or null
	 */
	public static boolean isBlank(String string) {
		if ((string != null) && (string.trim().length() > 0)) {
			return false;
		}

		return true;
	}

	/**
	 * Check if a string is a valid word
	 * 
	 * @param string
	 *            the string to test
	 * @return
	 */
	public static boolean isAWord(String string) {
		// TODO: Implement this
		return true;
	}
}
